<template>
  <a-card :bordered="false" title="">
    <this-table ref="table" @on-edit="onEdit" />

    <add-modal ref="addM" @refresh="refresh" />
  </a-card>
</template>

<script>
import thisTable from './table'
import addModal from './add-modal.vue'

export default {
  components: { thisTable, addModal },
  methods: {
    onAdd() {
      this.$refs.addM.show()
    },
    onEdit(row) {
      this.$refs.editM.show(row)
    },
    refresh() {
      this.$refs.table.$refs.table.onRefresh()
    },
  },
}
</script>

